package com.example.springboot.service;

import com.example.springboot.domain.Comment;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

public interface CommentService {
    public void add(Comment comment);
    public void deleteById(Integer id);
    public void deleteBatch(List<Integer> ids);
    public void updateById(Comment comment);
    public Comment selectById(Integer id);
    public List<Comment> selectAll(Comment comment);
    public PageInfo<Comment> selectPage(Comment comment, Integer pageNum, Integer pageSize);
    public Integer selectCount(Integer fid);
    public List<Comment> selectForUser(Comment comment);
}
